package com.zy.pojo;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/5/31
 * Time: 下午 16:21
 * Description: 员工表
 */
public class Employee {

    private Integer id;
    private String name;
    private String password;
    private String phone;
    private String email;
    private Date enterDate;
    private Integer departmentId;
    private Department department;
    private String img;
    private Role role;

    public Employee(Integer id, String name, String password, String phone, String email, Date enterDate, Integer departmentId, Department department, String img, Role role) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.email = email;
        this.enterDate = enterDate;
        this.departmentId = departmentId;
        this.department = department;
        this.img = img;
        this.role = role;
    }

    public Employee() {
    }

    public Employee(Integer id, String name, String password, String phone, String email, Date enterDate, Integer departmentId, String img) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.email = email;
        this.enterDate = enterDate;
        this.departmentId = departmentId;
        this.img = img;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", enterDate=" + enterDate +
                ", departmentId=" + departmentId +
                ", department=" + department +
                ", img='" + img + '\'' +
                ", role=" + role +
                '}';
    }
}